package chapter1;

public class SimpleLookup implements Lookup<Integer> {
	
	private String[] names;
	private Integer[] values;

	public Integer find(String name) {
		for(int i = 0; i < names.length; i++){
			if(names[i].equals(name)){
				return values[i];
			}
		}
		return null;
	}

}
